package com.yang.dao;

import com.yang.entity.*;
import com.yang.pojo.GuestDto;

import java.util.List;

public interface DataStatisticeDao {

    /**
     * 在数据库获取订单表，通过时间范围
     * @param beginTime
     * @param overTime
     * @return
     */
    public List<OrderFormEntity> selectOrderByTime(long beginTime,long overTime);

    /**
     *
     * @param orderId
     * @return
     */
    public LiverRelationEntity selectLiveByOrderId(long orderId);

    /**
     * 通过id号找到房间
     * @param id
     * @return
     */
    public RoomEntity selectRoomById(long id);

    /**
     *通过id号找到旅客
     * @param guestId
     * @param status
     * @return
     */
    public GuestEntity selectGuestById(long guestId,String status);

    /**
     *
     * @param orderId
     * @param status
     * @return
     */
    public List<GuestDto> selectGuestByorderId(long orderId,String status);

    /**
     * 通过orderId找到关系表
     * @param orderId
     * @param guestStatus
     * @return
     */
    public RelationEntity selectRelationByOrderIdAndGuestStatic(long orderId,String guestStatus);



}
